package com.yxr.mobileplayer.base;

import android.app.Activity;
import android.view.View;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class BasePage{

    protected Activity activity;
    protected View rootView;

    public BasePage(Activity activity){
        this.activity = activity;
        this.rootView = onCreateSelfView();
    }

    protected abstract View onCreateSelfView();//创建页面视图
    protected abstract void onCreateViewDate();//创建页面数据

}
